package com.zw.dto;

import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;

@Data
@ApiModel("用户注册请求dto")
public class RegisterDto {
    /**
     * 用户邮箱
     */
    @ApiModelProperty(value = "邮箱")
    @Email(message="邮箱格式错误")
    private String email;

    /**
     * 用户账号
     */
    @ApiModelProperty(value = "姓名")
    @NotBlank(message = "姓名不能为空")
    private String userName;
    /**
     * 单位名称
     */
    @ApiModelProperty(value = "单位名称")
    @NotBlank(message = "单位不能为空")
    private String companyName;
    /**
     * 密码
     */
    @ApiModelProperty(value = "密码")
    @NotBlank(message = "密码不能为空")
    private String password;
}
